<template>
	<view>
		<u-cell-group>
			<u-cell title="设备名称" :value="deviceDataList.deviceName"></u-cell>
			<u-cell title="设备ID" :value="deviceDataList.deviceId"></u-cell>
			<u-cell title="所属项目" :value="deviceDataList.deptName"></u-cell>
			<u-cell title="设备坐标" :value="deviceDataList.latitude + ',' + deviceDataList.longitude"></u-cell>
			<u-cell title="离线判断时间" :value="deviceDataList.offlineTime"></u-cell>
		</u-cell-group>
	</view>
</template>

<script>
import indexApi from '@/api/index.js'
export default {
	name: 'deviceMsg',
	props: [],
	onLoad(option) {
		indexApi.getDeviceIdData({ status: 3, deviceId: option.deviceId }).then(res => {
			this.deviceDataList = res.data.rows[0];
		})
	},
	data() {
		return {
			deviceDataList: [],
		}
	},
	methods: {

	}
}
</script>

<style>
/* *{
	margin: 0;
	padding: 0;
	list-style:none;
} */
</style>
